package com.abc.scholarship.service.impl;

import com.abc.scholarship.domain.entity.Student;
import com.abc.scholarship.domain.vo.resp.StudentResp;
import com.abc.scholarship.mapper.StudentMapper;
import com.abc.scholarship.service.StudentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 学生表 服务实现类
 * </p>
 *
 * @author jzw
 * @since 2024-07-02
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public StudentResp getUserInfo(Long uId) {
        return studentMapper.getById(uId);
    }
}
